﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200010D RID: 269
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleRogueMagicItemInfo : IMessage<BattleRogueMagicItemInfo>, IMessage, IEquatable<BattleRogueMagicItemInfo>, IDeepCloneable<BattleRogueMagicItemInfo>, IBufferMessage
	{
		// Token: 0x1700039D RID: 925
		// (get) Token: 0x06000C49 RID: 3145 RVA: 0x000247E7 File Offset: 0x000229E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleRogueMagicItemInfo> Parser
		{
			get
			{
				return BattleRogueMagicItemInfo._parser;
			}
		}

		// Token: 0x1700039E RID: 926
		// (get) Token: 0x06000C4A RID: 3146 RVA: 0x000247EE File Offset: 0x000229EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleRogueMagicItemInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700039F RID: 927
		// (get) Token: 0x06000C4B RID: 3147 RVA: 0x00024800 File Offset: 0x00022A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleRogueMagicItemInfo.Descriptor;
			}
		}

		// Token: 0x06000C4C RID: 3148 RVA: 0x00024807 File Offset: 0x00022A07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicItemInfo()
		{
		}

		// Token: 0x06000C4D RID: 3149 RVA: 0x0002481C File Offset: 0x00022A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicItemInfo(BattleRogueMagicItemInfo other) : this()
		{
			this.battleRoundCount_ = ((other.battleRoundCount_ != null) ? other.battleRoundCount_.Clone() : null);
			this.battleScepterList_ = other.battleScepterList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000C4E RID: 3150 RVA: 0x0002486D File Offset: 0x00022A6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicItemInfo Clone()
		{
			return new BattleRogueMagicItemInfo(this);
		}

		// Token: 0x170003A0 RID: 928
		// (get) Token: 0x06000C4F RID: 3151 RVA: 0x00024875 File Offset: 0x00022A75
		// (set) Token: 0x06000C50 RID: 3152 RVA: 0x0002487D File Offset: 0x00022A7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicRoundCount BattleRoundCount
		{
			get
			{
				return this.battleRoundCount_;
			}
			set
			{
				this.battleRoundCount_ = value;
			}
		}

		// Token: 0x170003A1 RID: 929
		// (get) Token: 0x06000C51 RID: 3153 RVA: 0x00024886 File Offset: 0x00022A86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BattleRogueMagicScepter> BattleScepterList
		{
			get
			{
				return this.battleScepterList_;
			}
		}

		// Token: 0x06000C52 RID: 3154 RVA: 0x0002488E File Offset: 0x00022A8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleRogueMagicItemInfo);
		}

		// Token: 0x06000C53 RID: 3155 RVA: 0x0002489C File Offset: 0x00022A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleRogueMagicItemInfo other)
		{
			return other != null && (other == this || (object.Equals(this.BattleRoundCount, other.BattleRoundCount) && this.battleScepterList_.Equals(other.battleScepterList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000C54 RID: 3156 RVA: 0x000248F0 File Offset: 0x00022AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleRoundCount_ != null)
			{
				num ^= this.BattleRoundCount.GetHashCode();
			}
			num ^= this.battleScepterList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000C55 RID: 3157 RVA: 0x0002493A File Offset: 0x00022B3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000C56 RID: 3158 RVA: 0x00024942 File Offset: 0x00022B42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000C57 RID: 3159 RVA: 0x0002494C File Offset: 0x00022B4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleRoundCount_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.BattleRoundCount);
			}
			this.battleScepterList_.WriteTo(ref output, BattleRogueMagicItemInfo._repeated_battleScepterList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000C58 RID: 3160 RVA: 0x0002499C File Offset: 0x00022B9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleRoundCount_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleRoundCount);
			}
			num += this.battleScepterList_.CalculateSize(BattleRogueMagicItemInfo._repeated_battleScepterList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000C59 RID: 3161 RVA: 0x000249F0 File Offset: 0x00022BF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleRogueMagicItemInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleRoundCount_ != null)
			{
				if (this.battleRoundCount_ == null)
				{
					this.BattleRoundCount = new BattleRogueMagicRoundCount();
				}
				this.BattleRoundCount.MergeFrom(other.BattleRoundCount);
			}
			this.battleScepterList_.Add(other.battleScepterList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000C5A RID: 3162 RVA: 0x00024A55 File Offset: 0x00022C55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000C5B RID: 3163 RVA: 0x00024A60 File Offset: 0x00022C60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 18U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.battleScepterList_.AddEntriesFrom(ref input, BattleRogueMagicItemInfo._repeated_battleScepterList_codec);
					}
				}
				else
				{
					if (this.battleRoundCount_ == null)
					{
						this.BattleRoundCount = new BattleRogueMagicRoundCount();
					}
					input.ReadMessage(this.BattleRoundCount);
				}
			}
		}

		// Token: 0x04000516 RID: 1302
		private static readonly MessageParser<BattleRogueMagicItemInfo> _parser = new MessageParser<BattleRogueMagicItemInfo>(() => new BattleRogueMagicItemInfo());

		// Token: 0x04000517 RID: 1303
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000518 RID: 1304
		public const int BattleRoundCountFieldNumber = 1;

		// Token: 0x04000519 RID: 1305
		private BattleRogueMagicRoundCount battleRoundCount_;

		// Token: 0x0400051A RID: 1306
		public const int BattleScepterListFieldNumber = 2;

		// Token: 0x0400051B RID: 1307
		private static readonly FieldCodec<BattleRogueMagicScepter> _repeated_battleScepterList_codec = FieldCodec.ForMessage<BattleRogueMagicScepter>(18U, BattleRogueMagicScepter.Parser);

		// Token: 0x0400051C RID: 1308
		private readonly RepeatedField<BattleRogueMagicScepter> battleScepterList_ = new RepeatedField<BattleRogueMagicScepter>();
	}
}
